package org.example.system.model.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.system.common.base.BasePageQuery;
import org.springframework.format.annotation.DateTimeFormat;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "支付记录分页查询")
public class TradeRecordPageQuery extends BasePageQuery {

    @Schema(description = "订单号")
    private String tradeNo;

    @Schema(description = "支付方式")
    private Integer paymentType;

    @Schema(description = "交易状态")
    private Integer tradeStatus;

    @Schema(description="下单/创建时间-开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTimeStart;

    @Schema(description="下单/创建时间-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTimeEnd;

    @Schema(description="支付时间-开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String paymentTimeStart;

    @Schema(description="支付时间-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String paymentTimeEnd;
}
